<!DOCTYPE html>
<html lang="zh-CN" class="index_page">
<head>
	{template header}
	<title>{$row[title]} - {$row[catname]} - {$mymps_global[SiteName]}</title>
	<link type="text/css" rel="stylesheet" href="template/css/global.css">
	<link type="text/css" rel="stylesheet" href="template/css/style.css">
	<link type="text/css" rel="stylesheet" href="template/css/info.css">
    <script>window['current'] = '{$row[catname]}';</script>
    <script>function seeContact(id){if(confirm("查看该信息联系方式需支付{$row[usecoin]}个金币，确定查看吗？")){var url='index.php?mod=information&action=seecontact&&id='+id;$.get(url,function(data){if(data==='余额不足'){MympsWindowMsg('',1,'您当前金币余额不足，请先充值','index.php?mod=member&action=pay');return false}else if(data==='请先登录'){MympsWindowMsg('',1,'您尚未登录，请先登录','index.php?mod=login&returnurl=');return false}else{$("#showContact").html(data);$("#djcklxfs").hide();$("#showContact").show();return true}})}}</script>
</head>
<body class="{$mymps_global[cfg_tpl_dir]}">
<div class="wrapper">
	{template header_search}
	<div class="detail">	
		<div class="tit_area">
			<h1 class="tit">{$row[title]}</h1>
			<div class="status_bar">
				<span class="date"><i class="ico"></i>{echo GetTime($row[begintime])}</span>
				<span class="browse_num"><i class="ico"></i><span id="totalcount" >{$row[hit]}</span>次</span>
				<a rel="nofollow" href="{$mymps_global[SiteUrl]}/box.php?part=wap_shoucang&infoid={$row[id]}" class="btn_Favorite"><i class="ico"></i>收藏</a>
			</div>
		</div>
		{if $row[image]}
		<div class="image_area_w">
			<div class="image_area">
				<ul>
                	{loop $row[image] $mymps}		
					<li><img src="{$mymps_global[SiteUrl]}{$mymps[prepath]}" ref="{$mymps_global[SiteUrl]}{$mymps[path]}" width="220" height="155" /></li>
					{/loop}
				</ul>
				<div class="panel_num"></div>
			</div>
		</div>
		{/if}
        {if $row[extra]}
		<ul class="attr_info" style="margin-top:0;">
        	{loop $row[extra] $mymps}
            {if $mymps[value]}
			<li>
				<span class="attrName2"  style="{if strexists($mymps[value],'元')}color:#ff7800;{/if}">{$mymps[title]}：</span>
				<span class="attrVal"  style="{if strexists($mymps[value],'元')}color:#ff7800;font-weight:bold;font-size:20px;{/if}">{if in_array($mymps[value],array('0元','0元/月','0元/平米/天','0万元','0.00元','0.00万元'))}面议{else}{$mymps[value]}{/if}</span>
			</li>
            {/if}
			{/loop}
		</ul>
		{/if}
    	{if $row[usecoin] != 0 && $iflogin == 0}
        <script>MympsWindowMsg('',1,'该信息联系方式已被隐藏，登录后可查看！','index.php?mod=login&returnurl={echo urlencode("index.php?mod=information&id=".$row[id])}','nodeurl');</script>
        {elseif $viewid!=$id && $row[usecoin] > 0 && $iflogin == 1}
        <script>MympsWindowMsg('',0,'查看该信息联系方式需支付{$row[usecoin]}个金币！');</script>
        <ul class="attr_info bottom">
			<span class="attrVal mfico">
				<li id="djcklxfs">
					<p class="mt10">
						<a href="javascript:void(0);" onClick="seeContact('{$id}');" class="fangico"><i></i>点击查看联系方式</a>
					</p>
				</li>
                <div id="showContact"></div>
			</span>
		</ul>
        {elseif $row[usecoin]==0 || $viewid == $id}
        {if $row[contactview] == 1}
		<ul class="attr_info bottom">
			<span class="attrVal mfico">
            	{if $row[qq]}
				<li>
					<span class="attrName">联系 Q Q：</span>
					<span class="attrVal"> {$row[qq]}</span>
				</li>
				{/if}
				<li>
					<span class="attrName">联系电话：</span>
					<span class="attrVal"><a class="fred" href="tel:{$row[tel]}">{$row[tel]}</a>&nbsp;&nbsp;{$row[contact_who]}</span>
				</li>
                <li>
					<span class="attrName">认证情况：</span>
					<span class="attrVal renzheng">
					{if $mayi[per_certify] == 1}实名已认证<span class="smrz"></span>{else}实名未认证<span class="nosmrz"></span>{/if}&nbsp;&nbsp;
					{if $mayi[com_certify] == 1}执照已认证<span class="yyzz"></span>{else}执照未认证<span class="noyyzz"></span>{/if}
					</span>
				</li>
				<li>
					<p class="mt10">
						<a href="tel:{$row[tel]}" class="fangico dianhua"><i></i>拨打电话</a>
                        <a href="sms:{$row[tel]}" class="fangico duanxin"><i></i>短信咨询</a>
					</p>
				</li>
			</span>
		</ul>
        {else}
        <script>MympsWindowMsg('',0,'该信息已过期，联系方式已被隐藏!');</script>
        {/if}
        {/if}
		<div class="detail-tit">详细描述</div>
		<div class="detail_txt_che">
			{$row[content]}
			<br />联系我时，请说是在{$mymps_global[SiteName]}看到的。
		</div>
        {if $row[mappoint]}
        <div class="detail-tit">地理位置</div>
		<div class="detail_txt_che">
			<iframe src="{$mymps_global[SiteUrl]}/map.php?title={$row[title]}&isshow=1&p={$row[mappoint]}&width=360&height=190" height="205" width="100%" frameborder="0" scrolling="no"></iframe>
		</div>
        {/if}
		<div class="detail-tit">相关信息</div>
		<div class="follow">
			<ul>
            	{loop $relevant $mymps}
					<li><a href="index.php?mod=information&id={$mymps[id]}">{echo cutstr($mymps['title'],26)}</a><span>{echo get_format_time($mymps['begintime'])}</span></li>
				{/loop}
			</ul>

			<div class="more" style="margin-top:20px;">
				<a style="text-align: center;position: relative" href="index.php?mod=category&catid={$row[catid]}">查看更多{$row[catname]}信息&gt;&gt;</a>
			</div>
		</div>
	</div>
</div>
{template footer}
<div id="viewBigImagebg"></div>
<div id="viewBigImage">
    <div class="bigimg_topbar">
        <div class="btn_back"><span>返回</span></div>
        <div class="bigimg_num"><span class="curr_img">1</span>/<span class="total_img">9</span></div>
    </div>
    <div class="bigimg_box"><ul></ul></div>
</div>
<script src="template/js/slide.js"></script>
</div>
</body>
</html>
<div style="display:none"><script src="template/js/history.js"></script>